net: mvpp2: fix polarity of PHY reset signal
authorBaruch Siach <[email protected]>
Mon, 15 Oct 2018 10:16:47 +0000 (13:16 +0300)
committerJoe Hershberger <[email protected]>
Wed, 24 Oct 2018 19:45:38 +0000 (14:45 -0500)
commitfa14027d5c54e6715d2df9526bc951df7ffc78e7
treed67fd638488c10a72fbfb4fdff5a2f5a57fbabfb
parent1ddcf5edbbe48347ecdfdeb904b62ba5f8345757
net: mvpp2: fix polarity of PHY reset signal

The dm_gpio_set_value() call sets the logical level of the GPIO signal.
That is, it takes the GPIO_ACTIVE_{LOW,HIGH} property into account. The
driver needs to assert the reset, and then deassert it. Not the other
way around.

Cc: Stefan Chulski <[email protected]>
Signed-off-by: Baruch Siach <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
drivers/net/mvpp2.c